package com.crm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.crm.domain.entity.Notice;
import com.crm.mapper.NoticeMapper;
import com.crm.service.NoticeService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {
    private final NoticeMapper noticeMapper;

    @Override
    public Notice getNotice(Integer noticeId) {
        return noticeMapper.getNotice(noticeId);
    }

    @Override
    public String getAllNotice() {
        return noticeMapper.getAllNotice();
    }
}
